package com.ktjy.mapper;

import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    public List<SysUser> selectList(@Param("realName")String realName,@Param("roleId")Integer roleId);

    public List<SysUser> testGetUserListByChoose(@Param("realName")String realName,@Param("roleId")Integer roleId,@Param("account")String account,@Param("createdTime") Date createdTime);

    public List<SysUser> getUserByRoleIdArray(Integer[] roleIds);

    public List<SysUser> getUserByRoleIdList(List<Integer> roleList);

    public List<SysUser> getUserByRoleIdMap(Map<String,Object>roleMap);

    public int testUpdate(SysUser sysUser);

    public List<SysUser> selectPageList(@Param("realName")String realName,
                                        @Param("roleId")Integer roleId,
                                        @Param("pageBegin")Integer pageBegin,
                                        @Param("pageSize")Integer pageSize
                                        );
}
